class Message:
    def __init__(self,msg_id,msg_name='',msg_dlc = 8,msg_node = ''):
        self.msg_id   = hex(msg_id).upper().replace('X','x')
        self.msg_name = msg_name
        self.msg_dlc  = msg_dlc
        self.msg_node = msg_node
        self.msg_dirc = ''
        self.signal_array = []
        self.msg_id_int = msg_id
        self.msg_period = 0
    def signal_add(self,signal):
        self.signal_array.append(signal)

    @staticmethod
    def Get_msgDirc(msg):
        return msg.msg_dirc
    @staticmethod
    def Get_msgId(msg):
        return int(msg.msg_id_int)


